$(document)
		.ready(
				function() {

					$("#search").click(
							function() {

								$("#customerManageForm").attr("action",
										"customerManage.erp").submit();

							});
					$("#ok")
							.click(
									function() {
										parent.customerForm.id.value = document
												.getElementById("id").value;
										parent.customerForm.name.value = customerManageForm.name.value;
										parent.customerForm.birthdayM.value = customerManageForm.birthdayM.value;
										parent.customerForm.birthdayD.value = customerManageForm.birthdayD.value;
										parent.customerForm.password.value = customerManageForm.password.value;
										parent.customerForm.phone.value = customerManageForm.phone.value;
										parent.customerForm.mileage.value = customerManageForm.mileage.value;
										parent.customerForm.email.value = customerManageForm.email.value;

										parent.Shadowbox.close();

									});

					$("#cancel").click(function() {

						parent.Shadowbox.close();

					});

				});